package com.uml.umlwork.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.uml.umlwork.entity.Course;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
/**
 * @author Zhu
 * @date 2020/12/25
 */
@Mapper
@Repository
public interface CourseMapper extends BaseMapper<Course> {
    /**
     * 根据年、季节获取开课的课程
     * @param year 年
     * @param season 季节
     * @param isOpen 是否开启
     * @return 课程列表
     */
    List<Course> getAllOpenCourse(String year, String season,String isOpen);
}
